﻿package com.eitb.programas.streamingTest.botones{
	import com.eitb.botones.*;	
	import flash.text.*;
	import flash.events.*;
	import flash.display.*;

	public class BotonPlay extends Boton implements IVistaBoton {
		public function BotonPlay():void {
			this.addEventListener(MouseEvent.MOUSE_DOWN,downBoton);
			this.addEventListener(MouseEvent.MOUSE_UP,upBoton);
			this.addEventListener(MouseEvent.MOUSE_OVER,overBoton);
			this.addEventListener(MouseEvent.MOUSE_OUT,outBoton);
		}

		public function setVisible(mostrar:Boolean):void {
			this.visible=mostrar;
		}
		public function setText(text:String):void {
			//this.texto.text=text;
		}
		private function downBoton(event:MouseEvent):void {
			this.gotoAndStop(Boton.ACTIVO);
		}
		private function upBoton(event:MouseEvent):void {
			this.gotoAndStop(Boton.REPOSO);

		}
		private function overBoton(event:MouseEvent):void {
			this.gotoAndStop(Boton.REPOSO);
		}
		private function outBoton(event:MouseEvent):void {
			this.gotoAndStop(Boton.REPOSO);
		}
	}
}